.class Lcom/nemustech/regina/ElementReginaWidget$1;
.super Ljava/lang/Object;
.source "ElementReginaWidget.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ElementReginaWidget;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementReginaWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementReginaWidget;)V
    .locals 0
    .parameter

    .prologue
    .line 135
    iput-object p1, p0, Lcom/nemustech/regina/ElementReginaWidget$1;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public getImage(I)Landroid/graphics/Bitmap;
    .locals 4
    .parameter "faceIndex"

    .prologue
    const v3, 0x7f02005e

    const/4 v2, 0x1

    .line 138
    if-nez p1, :cond_0

    .line 139
    const-string v0, "ElementReginaWidget"

    const-string v1, "[Title Panel JIT] CALL mTitlePanelJit.getImage()"

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 140
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget$1;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    invoke-static {v0, v3}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 147
    :goto_0
    return-object v0

    .line 142
    :cond_0
    if-ne p1, v2, :cond_1

    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget$1;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementReginaWidget;->hasBack()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 143
    iget-object v0, p0, Lcom/nemustech/regina/ElementReginaWidget$1;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v0, v0, Lcom/nemustech/regina/ElementReginaWidget;->mResources:Landroid/content/res/Resources;

    invoke-static {v0, v3}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    .line 146
    :cond_1
    const-string v0, "ElementReginaWidget"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "[Title Panel JIT]faceIndex is greater than 1, faceIndex="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/nemustech/regina/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 147
    const/4 v0, 0x0

    goto :goto_0
.end method
